package test1223;

public class Test07 {
    public static void main(String[] args) {

        // 求 1 + 2 + 3 + ... + 10 的和
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum = sum+ i;
        }

        System.out.println(sum);
    }
}
